﻿<Window x:Class="Samples.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:rL="clr-namespace:Samples.RelativeLayout"
        Title="MainWindow" Height="300" Width="710">
    <Window.Resources>
        <rL:ViewModel x:Key="Vm1" Firstname="John" Lastname="Doe" Birthday="1980/01/01" Created="1990/01/30" LastEdited="2010/01/01" />
        <rL:ViewModel x:Key="Vm2" Firstname="Foo" Lastname="Bar" Birthday="1981/02/02" Created="1990/02/28" LastEdited="2010/01/01" />
        <rL:ViewModel x:Key="Vm3" Firstname="Mary" Middlename="Jane" Lastname="Foster" Birthday="1985/05/05" Created="1990/03/30" LastEdited="2010/01/01" />
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <GroupBox Header="Normal Grid using attached properties" Margin="5">
            <rL:DefaultGrid DataContext="{StaticResource Vm1}" />
        </GroupBox>
        <GroupBox Header="Grid using GridRows" Grid.Row="1" Margin="5">
            <rL:GridRowSample DataContext="{StaticResource Vm2}" />
        </GroupBox>
        <GroupBox Header="Grid using GridColumns" Grid.Column="1" Margin="5">
            <rL:GridColumnSample DataContext="{StaticResource Vm3}" />
        </GroupBox>
    </Grid>
</Window>
